//
//  LTManagerDelegate.h
//  LTGameSDK
//
//  Created by admin on 2020/2/17.
//  Copyright © 2020 gnetop. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
#import "LTLoginRequestModel.h"
#import "LTLoginResponseModel.h"

NS_ASSUME_NONNULL_BEGIN

typedef void (^loginBlock)(LTLoginResponseModel *model);

@protocol LTManagerDelegate <NSObject>
/// 登录
/// @param requestModel 登录所需数据
/// @param viewController 当前所处的ViewController(上下文)
/// @param callback 登录的结果回调，返回LTLoginResponseModel对象
- (void)loginWithRequestModel:(LTLoginRequestModel *)requestModel
           fromViewController:(UIViewController *)viewController
                     callback:(loginBlock)callback;


/// 应用跳转回调
- (void)application:(UIApplication *)app
              openURL:(NSURL *)url
               ptions:(NSDictionary<UIApplicationOpenURLOptionsKey,id> *)options;
/// 退出当前LT账户
- (void)logout;
@end

NS_ASSUME_NONNULL_END
